package com.tianji.promotion.service;

import com.tianji.promotion.domain.po.Coupon;
import com.tianji.promotion.domain.po.ExchangeCode;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 兑换码 服务类
 * </p>
 *
 * @author zzj
 * @since 2024-05-19
 */
public interface IExchangeCodeService extends IService<ExchangeCode> {

    /**
     * @description: 异步生成兑换码 
     * @params: [coupon]       
     * @return: 
     * @author: ajie
     * @date: 2024/5/22 13:33
     */
    void asyncGenerateExchangeCode(Coupon coupon);

    boolean updateExchangeCodeMark(long serialNum, boolean flag);
}
